
import  socket
1
client = socket.socket()

client.connect(("127.0.0.1", 8989))
while True:
    str = input(">>>:").strip()
    client.send(str.encode("utf-8"))
    data = client.recv(1024)
    print(data)